import request from '@/utils/request'

// 查询电子锁列表
export function listElectronicLock(query) {
  return request({
    url: '/service/electronicLock/list',
    method: 'get',
    params: query
  })
}

// 查询电子锁详细
export function getElectronicLock(id) {
  return request({
    url: '/service/electronicLock/' + id,
    method: 'get'
  })
}

// 新增电子锁
export function addElectronicLock(data) {
  return request({
    url: '/service/electronicLock',
    method: 'post',
    data: data
  })
}

// 修改电子锁
export function updateElectronicLock(data) {
  return request({
    url: '/service/electronicLock',
    method: 'put',
    data: data
  })
}

// 删除电子锁
export function delElectronicLock(id) {
  return request({
    url: '/service/electronicLock/' + id,
    method: 'delete'
  })
}
